package com.liang.cloud.Repository;



import com.liang.cloud.Entity.Cart;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author: 余亮亮
 * @description:
 * @create: 2020-01-29 13:52:23
 **/
public interface CartRepository extends JpaRepository<Cart,Integer> {

    public List<Cart> findByOpenid(String openid);

    public void deleteByCartIdIn(List<Integer> list);

    public void deleteByOpenid(String openid);
}
